public class YangHui{
	public static void main(String[] args) {
		int[][] num = new int[10][];
		for(int i = 0; i < num.length; i++){
			num[i] = new int[i+1];
			for(int j = 0; j < num[i].length; j++){
				if(j == 0 || j == num[i].length-1){
					num[i][j] = 1;
					continue;
				}else{
					num[i][j] = num[i-1][j] + num[i-1][j-1];
				}
			}
		}
		for (int i = 0; i < num.length; i++) {
			for(int j = 0; j < num[i].length; j++){
				System.out.print(num[i][j] + "\t");
			}
			System.out.println();
		}
	}
}